package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.SystemCateTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class SystemCateTabService implements BaseInterface<SystemCateTab> {
	private static final Logger log = LoggerFactory
			.getLogger(SystemCateTabService.class);
//	private BaseDao<SystemCateTab> systemCateTabDao = SpringBeanFactory.systemCateTabDao;
	private BaseDao<SystemCateTab> systemCateTabDao;
	
	public SystemCateTab get(Integer id) throws Exception {
		return systemCateTabDao.get(id);
	}

	public List<SystemCateTab> getAll() throws Exception {
		return systemCateTabDao.getAll();
	}

	public SystemCateTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<SystemCateTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(SystemCateTab obj) throws Exception {

	}

	public void update(SystemCateTab obj) throws Exception {

	}

	public void delete(SystemCateTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<SystemCateTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return systemCateTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		systemCateTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return systemCateTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<SystemCateTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return systemCateTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		systemCateTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return systemCateTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setSystemCateTabDao(BaseDao<SystemCateTab> systemCateTabDao) {
		this.systemCateTabDao = systemCateTabDao;
	}
	
}